﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>NewsAdminInfoViewPortal</title>
    <script type="text/javascript">
    </script>
</head>
<body>
<form id="formx" name="formx" method="post" enctype="multipart/form-data">
<div class="easyui-layout" data-options="fit:true,">
    <div data-options="region:'north',split:false," style="height: 34px; overflow: hidden;">
        <div style="float: left;">
            <a id="btnRefresh" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-refresh',plain:true,">刷新</a>
            <a id="btnHelp" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-help',plain:true,">帮助</a>
            <a id="btnClose" href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-no',plain:true,">关闭</a>
        </div>
        <div style="float: right; padding: 2px 1px 0px 2px;">
            <input class="easyui-searchbox" data-options="prompt:'关键字'" style="width: 150px" />
        </div>
    </div>
    <div data-options="region:'center',split:true," style="padding: 1px; overflow: hidden;">
        <div class="easyui-tabs" data-options="fit:true,border:true,tools:'#tab-tools1',">
            <div data-options="title:'基本内容',closable:false," style="padding: 1px; overflow: hidden;">
                <div class="easyui-layout" data-options="fit:true,">
                    <div data-options="region:'north',split:false," style="height: 100px; padding: 1px; overflow: hidden;">
                        <div style="margin: 1px 0px 1px 0px; text-align: center;">
                            <div id="Title" name="Title" style="width: 100%; height: 60px; line-height: 60px; text-align: center; margin: auto 0; color: #0094ff; font-size: 28px; font-weight: bold; padding: 0px 6px 0px 6px; border-bottom: 1px solid #cccccc; overflow: auto;"></div>
                            <div>创建时间：<label id="DateTimeCreate" name="DateTimeCreate" style="width: 100%; height: 32px; line-height: 32px; color: #cccccc; padding: 0px 6px 0px 6px;"></label></div>
                        </div>
                    </div>
                    <div data-options="region:'center',split:true," style="padding: 12px; overflow-x: hidden; overflow-y: scroll;">
                        <div id="Content" name="Content" style="width: 100%; font-size: 12px; color: #333333;"></div>
                    </div>
                </div>
            </div>
            <div data-options="title:'宽屏大图',closable:false," style="padding: 1px; text-align: center; overflow: auto;">
                <input id="Banner" name="Banner"  type="hidden" />
                <img id="Banner1" alt="" />
            </div>
        </div>
    </div>
</div>
</form>
<script type="text/javascript">
$(function () {
    window.xbase.logonNo(); // 访问本页面，如已登录则跳转到index.html。
    window.xbase.closeDialog('#btnClose', '#dialog1');
    window.xbase.openDialog('#btnHelp', '#dialog2');
    var id = window.xbase.getDataGridItem($('#Object').val());
    var datas = 'id=' + id + '&action=' + $('#Action').val() + '&url=' + window.location.pathname + '&rnd=' + Math.random();
    $.ajax({
        url: '/Ashx/Acc/Staff/NewsAdminInfoView.ashx?' + datas,
        data: datas,
        method: 'POST',
        success: function (result) {
            var json = window.xbase.json(result);
            $('#Title').html(json.info.Title);
            $('#Content').html(json.info.Content);
            $('#DateTimeCreate').html(window.xbase.FormatDateTime(json.info.DateTimeCreate));
            $("#Banner1").attr("src", json.info.Banner);
        },
    });
});
</script>
</body>
</html>
